﻿/*
 * Copyright (c) 2011 Shawn Rakowski
 * 
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to 
 * deal in the Software without restriction, including without limitation the 
 * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or 
 * sell copies of the Software, and to permit persons to whom the Software is 
 * furnished to do so, subject to the following conditions:
 * 
 * The above copyright notice and this permission notice shall be included in 
 * all copies or substantial portions of the Software.
 * 
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 
 * SOFTWARE. 
 * 
 */

using System;

namespace ROS.Persistence.DAO.MySQLDAO
{
    internal class MySQLRepositoryFactory : DAOFactory
    {
        #region Fields

        #endregion

        #region Properties

        #endregion

        #region Methods

        /// <summary>
        /// Get a MySQL implemented copy of the User DAO.
        /// </summary>
        /// <returns></returns>
        public override IUserDAO GetUserDAO()
        {
            UserDAO userDAO = new UserDAO();
            userDAO.Initialize();
            return userDAO;
        }

        /// <summary>
        /// Get a MySQL implemented copy of the MenuCategoryDAO.
        /// </summary>
        /// <returns></returns>
        public override IMenuCategoryDAO GetMenuCategoryDAO()
        {
            MenuCategoryDAO menuCategoryDAO = new MenuCategoryDAO();
            menuCategoryDAO.Initialize();
            return menuCategoryDAO;
        }


        /// <summary>
        /// Get a MySQL implemented copy of the MenuCategoryItem.
        /// </summary>
        /// <returns></returns>
        public override IMenuItemCategoryDAO GetMenuCategoryItemDAO()
        {
            MenuItemCategoryDAO menuCategoryItemDAO = new MenuItemCategoryDAO();
            menuCategoryItemDAO.Initialize();
            return menuCategoryItemDAO;
        }

        /// <summary>
        /// Get a MySQL implemented copy of the menuItemDAO.
        /// </summary>
        /// <returns></returns>
        public override IMenuItemDAO GetMenuItemDAO()
        {
            MenuItemDAO menuDAO = new MenuItemDAO();
            menuDAO.Initialize();
            return menuDAO;
        }

        /// <summary>
        /// Get a MySQL implemented copy of the Common DAO.
        /// </summary>
        /// <returns></returns>
        public override IMenuItemPricingDAO GetMenuItemPricingDAO()
        {
            MenuItemPricingDAO menuItemPricingDAO = new MenuItemPricingDAO();
            menuItemPricingDAO.Initialize();
            return menuItemPricingDAO;
        }

        /// <summary>
        /// Get a MySQL implemented copy of the ORder DAO.
        /// </summary>
        /// <returns></returns>
        public override IOrderDAO GetOrderDAO()
        {
            OrderDAO orderDAO = new OrderDAO();
            orderDAO.Initialize();
            return orderDAO;
        }

        /// <summary>
        /// Get a MySQL implemented copy of the OrderItem DAO.
        /// </summary>
        /// <returns></returns>
        public override IOrderItemDAO GetOrderItemDAO()
        {
            OrderItemDAO orderItemDAO = new OrderItemDAO();
            orderItemDAO.Initialize();
            return orderItemDAO;
        }

        /// <summary>
        /// Get a MySQL implemented copy of the OrderItemPricingDAO.        
        /// </summary>
        /// <returns></returns>
        public override IOrderItemPricingDAO GetOrderItemPricingDAO()
        {
            OrderItemPricingDAO orderItemPricingDAO = new OrderItemPricingDAO();
            orderItemPricingDAO.Initialize();
            return orderItemPricingDAO;
        }

        /// <summary>
        /// Get a MySQL implemented copy of the OrderEvent DAO.
        /// </summary>
        /// <returns></returns>
        public override IOrderEventDAO GetOrderEventDAO()
        {
            OrderEventDAO orderEventDAO = new OrderEventDAO();
            orderEventDAO.Initialize();
            return orderEventDAO;
        }

        #endregion
    }
}
